﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Model
{
    public class Domain_MyKaoHeBiao
    {
        public int mkhbid { set; get; }

        public string mkhbmc
        {
            set
            {
            }
            get
            {
                if (sssj != null)
                {
                    return sssj.ToString("y")+" 工作计划";
                }
                else
                {
                    return string.Empty;
                }
            }
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime cjsj { set; get; }
        /// <summary>
        /// 所属时间
        /// </summary>
        public DateTime sssj { set; get; }
        /// <summary>
        /// 所属人
        /// </summary>
        public string username { set; get; }
        public int khbzt { set; get; }
        public List<Domain_MyKaoHeBiaoOne> MyKaoHeBiaoOnes { set; get; }
        public List<Domain_MyKaoHeBiaoFuJiaBiao> MyKaoHeBiaoFujiaxiangs { set; get; }
        public int mbid { get; set; }
        public string xingming { get; set; }
        public int ksid { get; set; }
        public string ksmc { get; set; }
        public int zwid { get; set; }
        public string zwmc { get; set; }
        #region 新增
        /// <summary>
        /// 考核总结
        /// </summary>
        public zongjieone MyKaoHeZongJie { set; get; }
        #endregion
    }
    #region 新增

    public class xiangguangongzuo
    {
        /// <summary>
        /// 相关工作Id
        /// </summary>
        public int xggzid { set; get; }
        /// <summary>
        /// 相关工作内容
        /// </summary>
        public string xggz { set; get; }
    }
    /// <summary>
    /// 总结一级
    /// </summary>
    public class zongjieone
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string zjmc { set; get; }
        public ICollection<zongjietwo> Zongjietwos { set; get; }
    }
    /// <summary>
    /// 总结二级
    /// </summary>
    public class zongjietwo
    {
        public int zjtowid { set; get; }
        /// <summary>
        /// 总结类型Id
        /// </summary>
        public int zongjielx { set; get; }
        /// <summary>
        /// 总结类型名称
        /// </summary>
        public string zongjielxstr { set; get; }
        /// <summary>
        /// 总结内容
        /// </summary>
        public string zongjienr { set; get; }
    }
    #endregion
    public class Domain_MyKaoHeBiaoOne
    {
        public int oneid { set; get; }
        /// <summary>
        /// 模板Id
        /// </summary>
        public int mbid { set; get; }
        /// <summary>
        /// 内容
        /// </summary>
        public string mbnr { set; get; }
        /// <summary>
        /// 顺序
        /// </summary>
        public int sx { set; get; }
        /// <summary>
        /// 分值
        /// </summary>
        public decimal fz { set; get; }
        /// <summary>
        /// 组内评分HTML
        /// </summary>
        public string htmlstr { set; get; }
        /// <summary>
        /// 模板类型1为计划2为绩效
        /// </summary>
        public int mbtype { set; get; }
        /// <summary>
        /// 是否可以让客户自己填写，true是可以自己填写，false只能通过其它功能填写
        /// </summary>
        public bool isedit { set; get; }
        public List<Domain_MyKaoHeBiaotwo> MyKaoHeBiaoTwos { set; get; }
    }

    public class Domain_MyKaoHeBiaotwo
    {
        public int twoid { set; get; }
        public int mbid { set; get; }
        /// <summary>
        /// 工作计划为上报教师自主填写，绩效考核为系统从考核模板复制过来
        /// </summary>
        public string mbnr { set; get; }
        /// <summary>
        /// 是否为系统固定项，固定项不可编辑
        /// </summary>
        public bool IsEdit { set; get; }
        /// <summary>
        /// 模板
        /// </summary>
        public decimal fz { set; get; }
        /// <summary>
        /// 顺序
        /// </summary>
        public int sx { set; get; }
        public string htmlstr { set; get; }
        /// <summary>
        /// 总分，最后合分实用
        /// </summary>
        public decimal zf { set; get; }
        /// <summary>
        /// 工作计划开始时间
        /// </summary>
        public DateTime gzjhkssj { set; get; }
        /// <summary>
        /// 工作标准
        /// </summary>
        public string gzbz { set; get; }
        /// <summary>
        /// 工作计划完成时间
        /// </summary>
        public DateTime gzjhwcsj { set; get; }
        /// <summary>
        /// 备注
        /// </summary>
        public string bz { set; get; }
        public virtual ICollection<Domain_MyKaoHeBiaoPingFen> MyKaoHeBiaoTwoPingFens { set; get; }
        /// <summary>
        /// 工作计划完成情况（文字描述）
        /// </summary>
        public string gzjhwcqk { get; set; }
        /// <summary>
        /// 自评分
        /// </summary>
        public decimal zp { get; set; }
        public virtual  ICollection<Domain_MyKaoHeBiaotwo_FuJians> MyKaoHeBiaotwoFuJianses { set; get; }
        /// <summary>
        /// 工作计划完成时间文字描述
        /// </summary>
        public string gzjhwcsjstr { get; set; }
        #region 新增
        /// <summary>
        /// 工作承担人Id
        /// </summary>
        public Guid gzcdrid { set; get; }
        /// <summary>
        /// 工作承担人姓名
        /// </summary>
        public string gzcdr { set; get; }
        /// <summary>
        /// 重要程度
        /// </summary>
        public int zycd { set; get; }
        /// <summary>
        /// 相关工作集
        /// </summary>
        public virtual ICollection<xiangguangongzuo> xiangguangongzuoji { set; get; }
        /// <summary>
        /// 全年第几周
        /// </summary>
        public int zhou { set; get; }
        /// <summary>
        /// 来源ID
        /// </summary>
        public int lyid { set; get; }
        /// <summary>
        /// 来源人
        /// </summary>
        public string lyxingming { set; get; }
        /// <summary>
        /// 任务类型
        /// </summary>
        public int twolx { set; get; }
        /// <summary>
        /// 累计次数
        /// </summary>
        public int ljcs { set; get; }
        /// <summary>
        /// 是否完成
        /// </summary>
        public bool Iswc { set; get; }
        #endregion
    }
    /// <summary>
    /// 评分记录
    /// </summary>
    public class Domain_MyKaoHeBiaoPingFen
    {
        public int pfid { set; get; }
        public string pfusername { set; get; }
        public string XingMing { set; get; }
        public DateTime cjsj { set; get; }
        public decimal fz { set; get; }
    }
    /// <summary>
    /// 附加项
    /// </summary>
    public class Domain_MyKaoHeBiaoFuJiaBiao
    {
        /// <summary>
        /// MyKaoHeBiaoFuJiaBiaoID
        /// </summary>
        public int fjxid { set; get; }
        /// <summary>
        /// 附加项Id
        /// </summary>
        public int xmid { set; get; }
        /// <summary>
        /// 附加项名称
        /// </summary>
        public string xmmc { set; get; }
        /// <summary>
        /// 项目分值
        /// </summary>
        public decimal xmfz { set; get; }
        /// <summary>
        /// 创建者
        /// </summary>
        public string cjrusername { set; get; }
    }
    /// <summary>
    /// 附件
    /// </summary>
    public class Domain_MyKaoHeBiaotwo_FuJians
    {
        /// <summary>
        /// 考核表附件集MyKaoHeBiao_two
        /// </summary>
        public int fjid { set; get; }
        /// <summary>
        /// 附件路径
        /// </summary>
        public string path { set; get; }
        /// <summary>
        /// 附件名称
        /// </summary>
        public string fjmc { set; get; }
        /// <summary>
        /// 备注
        /// </summary>
        public string bz { set; get; }
        public string fileguid { get; set; }
        public string fileHash { get; set; }
    }
}
